[fix] Upgrade Vertx to match BK's version (otherwise BK does not work)#20070
Merged
RobertIndie merged 2 commits intoapache:masterfrom Apr 12, 2023
Merged
[fix] Upgrade Vertx to match BK's version (otherwise BK does not work)#20070RobertIndie merged 2 commits intoapache:masterfrom
RobertIndie merged 2 commits intoapache:masterfrom
Conversation
2 tasks
cbornet
approved these changes
Apr 11, 2023
hezhangjian
approved these changes
Apr 11, 2023
RobertIndie
approved these changes
Apr 12, 2023
poorbarcode
approved these changes
Apr 12, 2023
Contributor
|
/pulsarbot rerun-failure-checks |
Demogorgon314
approved these changes
Apr 12, 2023
hangc0276
approved these changes
Apr 12, 2023
Member
|
FWIW - I noticed that the vertx version number is pulled in at #7997 which has a comment:
That is, we temporarily workaround a CVE issue #7931 but later leave it as is. Generally, the vert.x dependency should be conveyed from BK and such issues should be fixed at the BK side. May or may not we just remove explicit vertx version dependency in Pulsar side to avoid further such version mismatch issue. |
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
May 28, 2025
apache#20070) ### Motivation BK deployed with Pulsar fail on start with ``` ERROR org.apache.bookkeeper.common.component.AbstractLifecycleComponent - Failed to start Component: http-service java.lang.NoSuchMethodError: 'io.vertx.core.Future io.vertx.core.Vertx.deployVerticle(io.vertx.core.Verticle)' at org.apache.bookkeeper.http.vertx.VertxHttpServer.startServer(VertxHttpServer.java:93) ~[org.apache.bookkeeper.http-vertx-http-server-4.16.0.jar:4.16.0] at org.apache.bookkeeper.server.service.HttpService.doStart(HttpService.java:62) ~[org.apache.bookkeeper-bookkeeper-server-4.16.0.jar:4.16.0] at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) ~[org.apache.bookkeeper-bookkeeper-common-4.16.0.jar:4.16.0] at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$start$4(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.16.0.jar:4.16.0] at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[com.google.guava-guava-31.0.1-jre.jar:?] at org.apache.bookkeeper.common.component.LifecycleComponentStack.start(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.16.0.jar:4.16.0] at org.apache.bookkeeper.common.component.ComponentStarter.startComponent(ComponentStarter.java:84) ~[org.apache.bookkeeper-bookkeeper-common-4.16.0.jar:4.16.0] at org.apache.bookkeeper.server.Main.doMain(Main.java:224) ~[org.apache.bookkeeper-bookkeeper-server-4.16.0.jar:4.16.0] at org.apache.bookkeeper.server.Main.main(Main.java:199) ~[org.apache.bookkeeper-bookkeeper-server-4.16.0.jar:4.16.0] ``` The root cause is that BK upgraded to 4.16.0 and needs newer version of vertx that introduced API changes apache/bookkeeper#3435 Pulsar forces older version of dependency. ### Modifications Upgrade Vertx to the same version as BK (cherry picked from commit 18ccd9e) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
BK deployed with Pulsar fail on start with
The root cause is that BK upgraded to 4.16.0 and needs newer version of vertx that introduced API changes apache/bookkeeper#3435
Pulsar forces older version of dependency.
Modifications
Upgrade Vertx to the same version as BK
Verifying this change
Update standalone configuration:
and run
bin/pulsar standaloneWithout the fix it fails with "Not enough non-faulty bookies available"
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: dlg99#14